<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head>
<style>
.error {
	color: #ff0000;
}
.errorblock{
	color: #000;
	background-color: #ffEEEE;
	border: 3px solid #ff0000;
	padding:8px;
	margin:16px;
}
</style>
</head>
<body>
	<h1>Add Event</h1>

	<form:errors path="*" cssClass="errorblock" element="div"/>
	
	<form:form method="POST" commandName="event">
	
		<table>
			<tr>
				<td>Name :</td>
				<td><form:input path="name" /></td>
				<td><form:errors path="name" cssClass="error" /></td>
			</tr>
			<tr>
				<td>Description :</td>
				<td><form:textarea path="description" /></td>
				<td><form:errors path="description" cssClass="error" /></td>
			</tr>		
		</table>
		
		<input type="submit" class="save" title="Create" value="Create" />
		
		<input type="button" class="cancel" title="Cancel" value="Cancel" />
		
	</form:form>

</body>
</html>